<!DOCTYPE html>
<html lang="en">
<head>
    <title>{$data.title}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="{$data.description}" />
    <meta name="keywords" content="{$data.keyword}" />
    <meta name="robots" content="all"/>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <!-- css -->
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
    <link href="__MOBILE__css/iconfont.css" rel="stylesheet"/>
    <link href="__MOBILE__css/other/am.css" rel="stylesheet"/>
    <link href="__MOBILE__css/other/flexslider.css" rel="stylesheet"/>
    <link href="__MOBILE__css/other/style.css" rel="stylesheet"/>
    <!-- moblie -->
    <link rel="stylesheet" href="__MOBILE__css/style.css">
    <link rel="stylesheet" type="text/css" href="__MOBILE__css/blueimp-gallery.min.css">
    <style>
        .technicalData .table_box ._table1 table tr td{overflow-x: auto;}
        .newlist__{padding: 0;}
        .newlist__ ul li .text{padding-top: 15px;}
        .szmdx{text-transform:capitalize;}
        .crumbs{margin-top: 70px;}
    </style>
    {$seo.head}
</head>
<body>
{$seo.body}

    <div class="crumbs clear">
        <i class="iconfont icon-zhuye"></i>
        <a href="/">主页</a>>
        <a href="/Product-Category.html">产品中心</a>>
        <a class="crumbs_list">{$data.title}</a>
        <a class="fr"><i class="iconfont icon-fanhui1 __fanhui"></i></a>
    </div>
<div class="m_wrap">
    {include file="public/header" /}

    <!-- m_banner -->
    <div class="m_banner">
        <ul class="m_banner_slider clear">
            {volist name="data.cover" id="v" key="k"}
            <li>
                <div class="pic">
                    <img src="{$v}" alt="">
                </div>
            </li>
            {/volist}
        </ul>
    </div>
    <!-- m_banner end -->

</div>

<div class="m_page m_inner_page">

    <div class="m_inner_page_top m_public">
        {$data.desc}
    </div>

    <div class="m_productlist_desc">

        <!-- Technical Data -->
        <div class="m_productlist_desc technicalData">
            <div class="m_module_top_other">
                <h3 class="title">技术参数</h3>
            </div>
            {$data.canshu}
            <!--&lt;!&ndash; box &ndash;&gt;-->
            <!--<div class="table_box">-->
                <!--<div class="_table1 box111" style="display:none;">-->
                    <!--<table style="table-layout: fixed">-->
                        <!--<tr>-->
                            <!--<th></th>-->
                            <!--<?php foreach($data['technical_mm_header'] as $key => $val):?>-->
                            <!--<th><?php echo $val;?></th>-->
                            <!--<?php endforeach;?>-->
                        <!--</tr>-->
                        <!--<?php foreach($data['technical_mm_rows'] as $key => $val):?>-->
                        <!--<tr>-->
                            <!--<td><?php echo $val;?></td>-->
                            <!--<?php foreach($data['technical_mm_data'][$key] as $data_key => $data_val):?>-->
                            <!--<td><?php echo $data_val;?></td>-->
                            <!--<?php endforeach;?>-->
                        <!--</tr>-->
                        <!--<?php endforeach;?>-->
                    <!--</table>-->
                <!--</div>-->
                <!--<div class="_table1 box112" style="display:none;">-->
                    <!--<table style="table-layout: fixed">-->
                        <!--<tr>-->
                            <!--<th></th>-->
                            <!--<?php foreach($data['technical_inch_header'] as $key => $val):?>-->
                            <!--<th><?php echo $val;?></th>-->
                            <!--<?php endforeach;?>-->
                        <!--</tr>-->
                        <!--<?php foreach($data['technical_inch_rows'] as $key => $val):?>-->
                        <!--<tr>-->
                            <!--<td><?php echo $val;?></td>-->
                            <!--<?php foreach($data['technical_inch_data'][$key] as $data_key => $data_val):?>-->
                            <!--<td><?php echo $data_val;?></td>-->
                            <!--<?php endforeach;?>-->
                        <!--</tr>-->
                        <!--<?php endforeach;?>-->
                    <!--</table>-->
                <!--</div>-->
            <!--</div>-->
        </div>

        <a href="/Contact-us.html" class="pushbar" style="margin-top: 30px;">获取报价</a>
        <a href="/Product-Category.html" class="other_pushbar">查看产品列表</a>
    </div>

    <!-- SEE HOW IT WORKS -->
    <div class="see_works">
        <div class="m_module_top_other">
            <h3 class="title">查看它是如何工作的</h3>
        </div>
        <div class="video">

            <iframe id="player" type="text/html" width="100%" height="210" src="{$data.video}" frameborder="0"></iframe>
            <!-- <video controls="controls" poster="images/moblie/products-img.jpg" controls="controls" height="210" width="100%">
              <source src="../video/The Piano Guys - Fight Song／Amazing Grace.mp4">
            </video> -->
        </div>
    </div>

    <!-- Parts advantage -->
    <div class="parts_advantage m_public">
        <div class="m_module_top_other">
            <h3 class="title szmdx">产品优势</h3>
        </div>
        <div class="parts_advantage_list">
            {volist name="data.parts" id="v" key="k"}
            <div class="parts_advantage_alone">
               
                    <h3 class="title">{$v.name}</h3>
                    <p class="content">{$v.content}</p>
                    <div class="pic_img" style="height:230px;">
                        <img src="{$v.img_url}" alt="{$v.alt}">
                    </div>
               
            </div>
            {/volist}
        </div>
    </div>




    <div class="production_samples">
        <div class="m_products m_public" style="position:relative;padding:30px 15px;">
            <div class="m_module_top_other">
                <h3 class="title">加工样品</h3>
            </div>
            <div class="m_products_list">
                <ul>
                    {volist name="data.sample" id="v" key="k"}
                    {if $k gt 4}
                    <li id="sample" style="display: none;">
                        <a href="{$v.img_url}" title="{$v.alt}" data-gallery="">
                            <div class="m_products_pic">
                                <div class="pic-img">
                                    <img src="{$v.img_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="m_products_text">
                                <h3 class="title">{$v.name}</h3>
                            </div>
                        </a>
                    </li>
                    {else \}
                    <li >
                        <a href="{$v.img_url}" title="{$v.alt}" data-gallery="">
                            <div class="m_products_pic">
                                <div class="pic-img">
                                    <img src="{$v.img_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="m_products_text">
                                <h3 class="title">{$v.name}</h3>
                            </div>
                        </a>
                    </li>
                    {/if}
                    {/volist}
                    <div id="blueimp-gallery" class="blueimp-gallery">
                        <div class="slides"></div>
                        <h3 class="title" style="display: block;"></h3>
                        <a class="prev">‹</a>
                        <a class="next">›</a>
                        <a class="close" style="display: block;">×</a>
                        <!-- <a class="play-pause"></a> -->
                        <ol class="indicator" style="display:none;"></ol>
                    </div>
                </ul>
            </div>
            <span class="_link" style="display: block;width: 100%;height: 1px;background:#f4f4f4;margin-top: 40px;"></span>
            <a id="samplesee" class="pushbar" style="position: absolute;bottom: 9px;left: 50%;width:70%;margin-left: -35%;">查看更多</a>
        </div>
    </div>

    <!-- Features of the Speedy laser engravers -->
   <!--  <div class="laser_engravers">
        <div class="m_products m_public" style="position:relative;padding:30px 15px;">
            <div class="m_module_top_other">
                <h3 class="title"> {$type.name} 的加工样品</h3>
            </div>
            <div class="m_products_list">
                <ul>
                    {volist name="data.application" id="v" key="k"}
                    {if $k gt 4}
                    <li id="app" style="display: none;">
                        <a href="/Applications/{$v.uname}-{$v.id}.html">
                            <div class="m_products_pic">
                                <div class="pic-img">
                                    <img src="{$v.cover_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="m_products_text">
                                <h3 class="title">{$v.name}</h3>
                                <span class="pushbar">更多细节 >></span>
                            </div>
                        </a>
                    </li>
                    {else \}
                    <li >
                        <a href="/Applications/{$v.uname}-{$v.id}.html">
                            <div class="m_products_pic">
                                <div class="pic-img">
                                    <img src="{$v.cover_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="m_products_text">
                                <h3 class="title">{$v.name}</h3>
                                <span class="pushbar">更多细节 >></span>
                            </div>
                        </a>
                    </li>
                    {/if}
                    {/volist}
                </ul>
            </div>
            <span class="_link" style="display: block;width: 100%;height: 1px;background:#f4f4f4;margin-top: 40px;"></span>
            <a id="appsee" class="pushbar" style="position: absolute;bottom: 9px;left: 50%;width:70%;margin-left: -35%;">查看更多</a>
        </div>
    </div> -->

    <!-- Features of the Speedy laserengravers -->
    <div class="laserengravers">
        <div class="m_blog" style="padding: 30px 15px;">
            <div class="m_module_top_other">
                <h3 class="title" style="text-align: left;"> {$type.name} 的特点</h3>
            </div>
            <div class="m_blog_list m_public newlist__">
                <ul>
                    {volist name="data.bujian" id="v" key="k"}
                    {if $k gt 4}
                    <li id="fea" style="display: none;">
                        <a class="clear" href="/Features/{$v.id}.html">
                            <div class="pic">
                                <div class="pic_img">
                                    <img src="{$v.img_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="text">
                                <h3 class="title">{$v.name}</h3>
                            </div>
                        </a>
                    </li>
                    {else \}
                    <li >
                        <a class="clear" href="/Features/{$v.id}.html">
                            <div class="pic">
                                <div class="pic_img">
                                    <img src="{$v.img_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="text">
                                <h3 class="title">{$v.name}</h3>
                            </div>
                        </a>
                    </li>

                    {/if}
                    {/volist}

                </ul>
                <a id="feasee" class="pushbar" style="width: 83%;margin: 0 auto;margin-top: 30px;">查看更多</a>
            </div>
        </div>
    </div>

    <!-- Features of the Speedy laserengravers -->
    <div class="laserengravers">
        <div class="m_blog" style="padding: 30px 15px;">
            <div class="m_module_top_other">
                <h3 class="title" style="text-align: left;"> {$type.name} 的可选升级</h3>
            </div>
            <div class="m_blog_list m_public newlist__">
                <ul >
                    {volist name="data.lore" id="v" key="k"}
                    {if $k gt 4}
                    <li id="upg" style="display: none;">
                        <a class="clear" href="/Upgrades/{$v.id}.html">
                            <div class="pic">
                                <div class="pic_img">
                                    <img src="{$v.img_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="text">
                                <h3 class="title">{$v.name}</h3>
                            </div>
                        </a>
                    </li>
                    {else \}
                    <li>
                        <a class="clear" href="/Upgrades/{$v.id}.html">
                            <div class="pic">
                                <div class="pic_img">
                                    <img src="{$v.img_url}" alt="{$v.alt}">
                                </div>
                            </div>
                            <div class="text">
                                <h3 class="title">{$v.name}</h3>
                            </div>
                        </a>
                    </li>

                    {/if}
                    {/volist}

                </ul>
                <a id="upgsee" class="pushbar" style="width: 83%;margin: 0 auto;margin-top: 30px;">查看更多</a>
            </div>
        </div>
    </div>

    <!-- What else do you want to know ? Contact us right now! -->
    <div class="contact_us" style="background:url(__MOBILE__images/data2.jpg) center center no-repeat;background-size:cover;">
        <div class="m_module_top_other">
            <h3 class="title" style="color:#fff;text-align: left;">你还有什么想知道？马上联系我们吧！</h3>
        </div>
        <div class="_form">
            <form id="m_form" class="" method="post" type="validate">
                <ul class="">
                    <li class=""><input class="_inp_text" type="text" id="username" name="name"   placeholder="姓名*" autocomplete="off"></li>
                    <li class=""><input class="_inp_text" type="text" id="tel" name="telephone"   placeholder="手机号码*" autocomplete="off"></li>
                    <li class=""><input class="_inp_text" id="email" type="text" name="email"   placeholder="邮箱地址" autocomplete="off"></li>

                </ul>
                <input class="_inp_text" type="text" id="com" name="company"   placeholder="公司名称" autocomplete="off">
                <textarea class="_inp_text"  type="text" id="content" name="content"   placeholder="留言内容*" autocomplete="off"></textarea>
            </form>
            <a class="pushbar" id="subMit">提交</a>
        </div>
    </div>

    <!-- Related products -->
    <div class="related_products">
        <div class="m_products m_public">
            <div class="m_module_top_other">
                <h3 class="title szmdx">相关产品</h3>
            </div>
            <div class="m_products_list">
                <ul>
                    <?php $i = 0; foreach($data['product'] as $key=>$val):?>
                    <li>
                        <a href="/product/p000{$val.id}.html">
                            <div class="m_products_pic">
                                <div class="pic-img" style="height: 259px">
                                    <img src="{$val.img[0]}" alt="">
                                </div>
                            </div>
                            <div class="m_products_text">
                                <h3 class="title"><?php echo $val['name'];?></h3>
                                <p class="content"><?php echo $val['introduce'];?> </p>
                                <span class="pushbar">更多细节 >></span>
                            </div>
                        </a>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>
    </div>







    <input id="name" type="hidden" value="{$data.name}">

</div>
<input type="hidden" id="pid" value="<?php echo $data['id'];?>">

{include file="public/footer" /}
<script type="text/javascript" src="__MOBILE__js/jquery.blueimp-gallery.min.js"></script>
<script>
    $('._text').css('width','auto');
    $("#m_send").click(function(){
        var reg = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"); //正则表达式
        var obj = document.getElementById("email"); //要验证的对象
        if(obj.value === ""){ //输入不能为空
            alert("Input can not be empty!");
            return false;
        }else if(!reg.test(obj.value)){ //正则验证不通过，格式不对
            alert("The format is incorrect, please re-enter!");
            return false;
        }else{
            $.ajax({
                url: '/path/to/file',
                type: 'GET',
                data: $('#m_form').serialize(),
            })
        }
    });
     $('.crumbs_list').wordLimit(20);
</script>

<script>
    var flag = 0;
    $('#subMit').click(function(){
        if(flag==1){
            alert('Please refresh the page!');
            return false;
        }
        var country = $("#country option:selected").text();
        if(!$('#username').val()){
            alert('请填写姓名!')
            return false;
        }else if(!$('#tel').val()){
            alert('请填写手机!')
            return false;
        }else if(!$('#content').val()){
            alert('请填写内容!')
            return false;
        }
        $.ajax({
            type: "POST",
            dataType: "json",
            url: '/home/danye/addcontactus',
            data: {
                'name':$('#username').val(),
                'com':$('#com').val(),
                'email':$('#email').val(),
                'tel':$('#tel').val(),
                'country':country,
                'content':$('#content').val(),
                'type':3,
                'product_id':$('#pid').val(),
            },
            success: function (res) {
                var success = JSON.parse(res);
                if(success.code===200){
                    flag = flag+1;
                    alert(success.msg);
                }else {
                    alert(success.msg);
                }

            }
        });

    });
    $('._navbar span').click(function(){
        $(this).addClass("active").siblings().removeClass("active");
    });

    //active
    $("._alone").eq(0).addClass('active');
    $("._table").eq(0).css('display','block');
    $("._alone1").eq(0).addClass('active');
    $("._table1").eq(0).css('display','block');
    $('.mmc').click(function () {
        $('.box11').css('display','block');
        $('.box12').css('display','none');
    })
    $('.inhc').click(function () {
        $('.box11').css('display','none');
        $('.box12').css('display','block');
    })
    $('.mmc11').click(function () {
        $('.box111').css('display','block');
        $('.box112').css('display','none');
    })
    $('.inhc11').click(function () {
        $('.box111').css('display','none');
        $('.box112').css('display','block');
    })
    //    $("._alone").click(function(){
    //        $("._table1").css('display','none');
    //        var index = $(this).index();
    //        $("._table1").eq(index).css('display','block');
    //    })

    // $("._alone1").click(function(){
    //  $("._table1").css('display','none');
    //  var index = $(this).index();
    //  $("._table1").eq(index).css('display','block');
    //    })
    var flag1 = 1;
    $('#samplesee').click(function () {
        if(flag1 === 1){
            flag1 = 2;
            $('#samplesee').css('background','#efefef');
            $('#samplesee').css('color','#1a7e67');
            $('#samplesee').text('See fewer');
            $('#sample').css('display','block');
        }else {
            flag1 = 1;
            $('#samplesee').css('background','#1a7e67');
            $('#samplesee').css('color','#fff');
            $('#samplesee').text('See more');
            $('#sample').css('display','none');
        }

    })
    
    var flag2 = 1;
    $('#appsee').click(function () {
      
        if(flag2 === 1){
            flag2 = 2;
            $('#appsee').css('background','#efefef');
            $('#appsee').css('color','#1a7e67');
            $('#appsee').text('See fewer');
            $('#app').css('display','block');
        }else {
            flag2 = 1;
            $('#appsee').css('background','#1a7e67');
            $('#appsee').css('color','#fff');
            $('#appsee').text('See more');
            $('#app').css('display','none');
        }

    })
    var flag3 = 1;
    $('#feasee').click(function () {
        if(flag3 === 1){
            flag3 = 2;
            $('#feasee').css('background','#efefef');
            $('#feasee').css('color','#1a7e67');
            $('#feasee').text('See fewer');
            $('#see').css('display','block');
        }else {
            flag3 = 1;
            $('#feasee').css('background','#1a7e67');
            $('#feasee').css('color','#fff');
            $('#feasee').text('See more');
            $('#see').css('display','none');
        }

    })
    var flag4 = 1;
    $('#upgsee').click(function () {
        if(flag4 === 1){
            flag4 = 2;
            $('#upgsee').css('background','#efefef');
            $('#upgsee').css('color','#1a7e67');
            $('#upgsee').text('See fewer');
            $('#upg').css('display','block');
        }else {
            flag4 = 1;
            $('#upgsee').css('background','#1a7e67');
            $('#upgsee').css('color','#fff');
            $('#upgsee').text('See more');
            $('#upg').css('display','none');
        }

    })
</script>

